package com.zkp.homework;

import java.math.BigDecimal;

public class homework1 {
    public static void main(String[] args) {
        double a=3999.0;
        double b=9.9;
        double c=a+b;
        BigDecimal a1=BigDecimal.valueOf(a);
        BigDecimal b1=BigDecimal.valueOf(b);
        BigDecimal c1=a1.add(b1);
        System.out.println(c1);
    }
}
